home *** CD-ROM | disk | FTP | other *** search
/ Champak 43 / Vol 43.iso / games / phit.swf / scripts / __Packages / CFieldHost.as < prev    next >
Encoding:
Text File  |  2007-07-13  |  786 b   |  36 lines

  1. class CFieldHost extends MovieClip
  2. {
  3.    var _field;
  4.    function CFieldHost()
  5.    {
  6.       super();
  7.       this._visible = false;
  8.       this.stop();
  9.    }
  10.    function PlayAppear()
  11.    {
  12.       this._visible = true;
  13.       FreshDebug.Trace("PlayAppear");
  14.       this.gotoAndPlay("appear");
  15.    }
  16.    function OnAppearDone()
  17.    {
  18.       FreshDebug.Trace("OnAppearDone");
  19.       this._field.SetInteractive(true);
  20.       this.stop();
  21.    }
  22.    function PlayDisappear()
  23.    {
  24.       FreshDebug.Trace("PlayDisappear");
  25.       this._field.SetInteractive(false);
  26.       this.gotoAndPlay("disappear");
  27.    }
  28.    function OnDisappearDone()
  29.    {
  30.       FreshDebug.Trace("OnDisappearDone");
  31.       _root._game.KillFieldHost(this);
  32.       this.stop();
  33.       this.removeMovieClip();
  34.    }
  35. }
  36.